package cn.fws.meap.community.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.fws.framework.web.entity.BaseEntity;
import java.math.BigDecimal;

/**
 * 回答表 meap_answer
 * 
 * @author chenkh
 * @date 2019-03-07
 */
public class Answer extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private String id;
	/** 问题id */
	private String problemId;
	/** 上级回答id */
	private String superId;
	/** 回答内容 */
	private String answerMsg;
	/** 用户id */
	private String openid;
	/** 是否采纳 */
	private String isAdopt;
	/** 问题收益 */
	private BigDecimal problemProfit;
	/** 用户头像 */
	private String userImg;

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public void setProblemId(String problemId) {
		this.problemId = problemId;
	}

	public String getProblemId() {
		return problemId;
	}
	public void setSuperId(String superId) {
		this.superId = superId;
	}

	public String getSuperId() {
		return superId;
	}
	public void setAnswerMsg(String answerMsg) {
		this.answerMsg = answerMsg;
	}

	public String getAnswerMsg() {
		return answerMsg;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getOpenid() {
		return openid;
	}
	public void setIsAdopt(String isAdopt) {
		this.isAdopt = isAdopt;
	}

	public String getIsAdopt() {
		return isAdopt;
	}
	public void setProblemProfit(BigDecimal problemProfit) {
		this.problemProfit = problemProfit;
	}

	public BigDecimal getProblemProfit() {
		return problemProfit;
	}
	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

	public String getUserImg() {
		return userImg;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("problemId", getProblemId())
            .append("superId", getSuperId())
            .append("answerMsg", getAnswerMsg())
            .append("openid", getOpenid())
            .append("isAdopt", getIsAdopt())
            .append("problemProfit", getProblemProfit())
            .append("createTime", getCreateTime())
            .append("userImg", getUserImg())
            .toString();
    }
}
